﻿<Window x:Class="AppReviewerClient.LoginView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Title="Login" Height="200" Width="300"
        WindowStartupLocation="CenterScreen">
    <xctk:BusyIndicator IsBusy="{Binding Path=IsWaiting}">
        <Border Background="LightGoldenrodYellow" Padding="5" Grid.ColumnSpan="3">

            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height=".6*" />
                    <RowDefinition Height=".4*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width=".3*" />
                    <ColumnDefinition Width=".3*" />
                    <ColumnDefinition Width=".3*" />
                </Grid.ColumnDefinitions>
                <StackPanel Grid.ColumnSpan="3" Grid.RowSpan="3">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Username : " Width="150" />
                        <TextBox Text="{Binding Path=Username}" Width="100"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Password : " Width="150" />
                        <TextBox x:Name="Password" Width="100"/>
                    </StackPanel>
                    <TextBlock Text="{Binding Path=ErrorMessage}" Foreground="Red"/>
                </StackPanel>
                <Button x:Name="LoginCmd" Grid.RowSpan="1" Grid.Row="1" Grid.Column="2" Margin="3">Login</Button>
                <!--<Button x:Name="LogOffCmd" Grid.Column="1" Grid.Row="1" Grid.RowSpan="1" Margin="3">Logoff</Button>-->
                <Button x:Name="CancelCmd" Grid.RowSpan="1" Grid.Row="1" Grid.Column="0" Margin="3">Cancel</Button>

            </Grid>
        </Border>
    </xctk:BusyIndicator>
</Window>
